var t = getApp();

Page({
    data: {
        active: "",
        id: "",
        info: []
    },
    onLoad: function(t) {
        t.id && this.setData({
            id: t.id
        }), t.active && this.setData({
            active: t.active
        }), this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var n, a, o = this;
        0 == this.data.active ? (n = "plugin.cloud-warehouse.frontend.dividend.complete-unseal-buy-log", 
        a = {
            id: o.data.id
        }) : (n = "plugin.cloud-warehouse.frontend.dividend.wait-unseal-buy-log", a = {
            wg_id: o.data.id
        });
        var e = t.getNetAddresss(n);
        t._getNetWork({
            url: e,
            data: a,
            success: function(t) {
                var n = t.data;
                1 == n.result ? (console.log(n), o.setData({
                    info: n.data
                })) : wx.showToast({
                    icon: "none",
                    title: n.msg,
                    duration: 1500
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});